package com.song.studylineserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.song.studylineserver.domain.Topic;
import net.sf.jsqlparser.statement.select.Top;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
* @author Swtao
* @description 针对表【sl_topic】的数据库操作Mapper
* @createDate 2022-01-14 14:22:03
* @Entity com.song.studylineserver.domain.Topic
*/
@Mapper
public interface TopicMapper extends BaseMapper<Topic> {

    //根据题目id查找题目
    Topic selectTopicByTopicId(@Param("topicId") String topicId);
    //查询所有题目
    Topic selectAll();

    List<Topic> searchAllByTopicAuthor(Long AuthorId);

    List<String> searchAllType();
}
